<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateParkJobsTable extends Migration
{
    /**
     * Run the migrations.
     *园林工种工作量预设表
     *
     * @return void
     */
    public function up()
    {
        Schema::create('park_jobs', function (Blueprint $table) {
            //字段定义
            $table->increments('id');
            $table->integer('project_id')->unsigned()->comment('项目ID');
            $table->integer('post_id')->comment('员工ID');
            $table->string('job_product')->comment('项目');
            $table->string('job_areas')->comment('任务量');
            $table->text('job_content')->comment('作业内容');
            $table->string('job_time')->comment('作业时间');
            $table->string('job_remark')->comment('备注');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('park_jobs');
    }
}
